package pers.zh.parking.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import pers.zh.parking.di.module.AdminModule;
import pers.zh.parking.mvp.contract.AdminContract;

import com.jess.arms.di.scope.ActivityScope;

import pers.zh.parking.mvp.ui.activity.AdminActivity;

@ActivityScope
@Component(modules = AdminModule.class, dependencies = AppComponent.class)
public interface AdminComponent {

    void inject(AdminActivity activity);

    @Component.Builder
    interface Builder {

        @BindsInstance
        AdminComponent.Builder view(AdminContract.View view);

        AdminComponent.Builder appComponent(AppComponent appComponent);

        AdminComponent build();
    }
}